#pragma once
#include "NGICollection.h"

class NodeStorage
{
public:
	NodeStorage(int _capacity);
	~NodeStorage(void);

	bool exists_in_map(int index);
	void add(Node* n, int index);
	void remove(Node* n, int index);

	int available_node_index();

	unsigned long* maps;
	NGICollection nodes;

protected:
	int capacity;
};

